import { PLAY_MODE, SEARCH_KEY } from '@/assets/js/constant'
import { load } from '@/assets/js/array-store'

const state = {
  sequenceList: [],
  playlist: [],
  playing: false,
  playMode: PLAY_MODE.sequence,
  currentIndex: 0,
  fullScreen: false,
  favoriteList: [],
  searchHistory: load(SEARCH_KEY),
  playHistory: []
}

/*
interface State {
  sequenceList: any[];
  playlist: any[];
  playing: boolean;
  playMode: number;
  currentIndex: number;
  favoriteList: any[];
  searchHistory: string[];
  playHistory: any[];
  fullScreen: boolean;
}*/
export default state
